package com.joey.otherName;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class start {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("otherName.xml");
        System.out.println(context.getBean("Dick"));
        //通过豆子的别名获取他
    }
}
